package com.lovo.common.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

/**
 * 
 * @TableName t_user
 */
@TableName(value ="t_user")
@Data
@Document(indexName = "shop_user_index")
public class User implements Serializable {
    /**
     * 
     */
    @TableId(value = "u_id", type = IdType.AUTO)
    private Integer id;

    /**
     * 
     */
    @TableField(value = "u_username")
    @Field(type = FieldType.Keyword,name = "u_username")
    private String username;

    /**
     * 
     */
    @TableField(value = "u_pwd")
    private String pwd;

    @TableField(value = "u_email")
    @Field(type = FieldType.Text,name = "u_email")
    private String email;

    @TableField(value = "u_phone")
    @Field(type = FieldType.Keyword,name = "u_phone")
    private String phone;

    /**
     * 
     */
    @TableField(value = "u_create_time")
    private Date createTime;

    /**
     * 
     */
    @TableField(value = "u_update_time")
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}